| Einhugur Color Management Plugin for Objo |
|
Einhugur.ColorManagement.ICCColorProfile.RGBColorToCMYKColor Method
Converts a single RGB color to a CMYK color using color profiles.
shared RGBColorToCMYKColor(
rgbValue
as Colour,
rgbProfile
as Einhugur.ColorManagement.ICCColorProfile,
cmykProfile
as Einhugur.ColorManagement.ICCColorProfile)
as Einhugur.CMYKColour
Parameters
- rgbValue
- The RGB value to convert to CMYK.
- rgbProfile
- The rgb color profile. (This has to be color profile with RGB color space). If nothing or incorrect color space is supplied then crude conversion is done.
- cmykProfile
- The cmyk color profile. (This has to be color profile with CMYK color space). If nothing or incorrect color space is supplied then crude conversion is done.
Returns
- Einhugur.CMYKColour
- The converted CMYK color.
Remarks
You should not use this to convert colors in an image one by one.
This function is more of to find CMYK color to use as stroke color or other such in things like PDF documents.
If profiles are nothing or have incorrect color space then crude conversion is done instead of using the color profiles.
See Also
Einhugur.ColorManagement.ICCColorProfile Class